<layout name="layout" />
<link rel="stylesheet" href="/Css/ranking.css" type="text/css">
<div class="pageheader">
	<h1 class="pagetitle">
		<a href="/" class="linkWay">首页/新增卡位</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="/shortcut/ranking_choose" class="linkWay choosse_ranking">选择卡位</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="javascript:" class="linkWay campaigns_page">选择需要卡位的计划</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="javascript:" class="linkWay  previous_page">选择需要卡位的推广组</a>
		&nbsp;<span class="divider">»</span>&nbsp;
		<a href="#" class="currentWay">选择需要卡位的关键词</a>
	</h1>
</div>
<div id="contentwrapper" class="contentwrapper nopadding">
	<div id="table_datepicker" style="float:right;margin-bottom:10px;"></div>
	<div id="keyword_manager" style="clear:both;">

	</div>
	<div class="stdbtnBox" style="text-align: center">
		<button class="stdbtn previous_page"  style="background:#229fdd;color:#fff;padding:8px 30px;margin-right: 15px;">上一步</button>
		<button class="stdbtn add-kawei" style="background:#229fdd;color:#fff;padding:8px 30px;">下一步</button>
	</div>
</div>
<include file="{APP_PATH}Template/Keyword/keywords.html" />
<include file="{APP_PATH}Template/Keyword/keyword_report.html" />
<script>
	var adgroup_id ='{$adgroup_id}', device = '{$device}', ids = '{$keyword_ids}',campaign_id='{$campaign_id}';
	$(document).ready(function(){
		var data = {device: device};
		if(ids){
			data.keyword_ids = [];
			$.each(ids.split(','), function(){
				data.keyword_ids.push(parseInt(this, 10));
			});
		}
		if(adgroup_id){
			data.adgroup_id = parseInt(adgroup_id, 10);
		}
		if(campaign_id){
			data.campaign_id = parseInt(campaign_id, 10);
		}
		key_click = ranking.key_click($(document.body), data);
		key_click.init();

	});
</script>
